const state = {
  collapsed: false
}

const mutations = {
  TOGGLE_COLLAPSED: (state, bool) => {
    state.collapsed = bool
  }
}

const actions = {
  toggleCollapsed ({ commit }, bool) {
    commit('TOGGLE_COLLAPSED', bool)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
